package com.dcy.znoa.controller.publiz.model.duty;

/**
 * @author pengyu
 */

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AddDutyModel {

    @NotNull
    @Size(min=1,max=50,message="职务名称长度只能在1-50之间")
    String dutyName;
    @NotNull
    Long compId;

    Long createOperId;

    Date createTime = new Date();

    Integer validFlag = 1 ;

}
